package cn.czu.wyw.service.impl;

import cn.czu.wyw.mapper.UsersMapper;
import cn.czu.wyw.pojo.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName ServiceB
 * @Description
 * @Author wyw
 * @Date 2022/9/13 15:03
 * @Version 1.0
 */
@Service
public class ServiceB {
    @Autowired
    UsersMapper usersMapper;

   // @Transactional(rollbackFor = Exception.class)
    public void insertUser(Users user){
        user.setId("serviceb");
        usersMapper.insert(user);
    }
}
